import axios from 'axios'
import * as constant from '@/utils/constant'
const service=axios.create({
    baseURL:process.env.REACT_APP_BASE_URL,
    timeout:constant.TIMEOUT
})
service.interceptors.request.use(config=>{
    return config
},err=>Promise.reject(err))

service.interceptors.response.use(response=>{
    return response
},err=>Promise.reject(err))

export default service